
import { ElMessage } from "element-plus";
import { PutUploadRequriement, PutUpdateGetTest } from "@/api/common/index";


// 上传文件后的调用的接口
export const handleUploadRequirement = async (val: any) => {
  const { data } = await PutUploadRequriement(val);
  if(data.code === 200) {
    ElMessage.success(data.msg);
    return;
  } else {
    ElMessage.error(data.msg);
    return;
  }
};

// 判断是否需求测试，及对项目经理的评论
export const handleUpdateGetTest = async (val: any) => {
  const { data } = await PutUpdateGetTest(val);
  if(data.code === 200) {
    ElMessage.success(data.msg);
    return;
  } else {
    ElMessage.error(data.msg);
    return;
  }
};

